﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace synoexec.synologylib.DataType
{
    public class FilePermInfo
    {
        [JsonProperty("acl")]
        public FileACL Acl { get; set; }
        [JsonProperty("is_acl_mode")]
        public bool IsAclMode { get; set; }
        [JsonProperty("posix")]
        public bool Posix { get; set; }
    }

    public class FileACL
    {
        [JsonProperty("append")]
        public bool Append { get; set; }
        [JsonProperty("del")]
        public bool Del { get; set; }
        [JsonProperty("exec")]
        public bool Exec { get; set; }
        [JsonProperty("read")]
        public bool Read { get; set; }
        [JsonProperty("write")]
        public bool Write { get; set; }
    }
}
